package com.ganbo.stock.service.impl;

import com.ganbo.stock.entity.Idea;
import com.ganbo.stock.repository.IdeaRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 版块
 *
 * @Author: ganbo
 * @Date: 2020/12/28 11:37
 */

@Service
public class IdeaService {

    @Autowired
    CompanyService companyService;
    @Autowired
    IdeaRepository ideaRepository;

    public Idea findIdeaByName(String name) {
        return ideaRepository.findIdeaByName(name);
    }

    public void save(Idea idea) {
        ideaRepository.save(idea);
    }
}
